package com.example.mybatis1.service;

import com.example.mybatis1.mapper.UserMapper;
import com.example.mybatis1.model.Userinfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2023-03-02
 * Time: 23:03
 */

@Service
public class UserService {
    @Resource  // 注入接口
    public UserMapper userMapper;

    public Userinfo getUserinfoById(Integer id){
        return userMapper.getUserinfoById(id);
    }
}
